<template>
	<view class="content">
		<!-- <view class="header">
			历史记录
		</view> -->
		<view class="count">
			{{number}} experiences available
		</view>
		<scroll-view scroll-y="true" class="main">
			<view class="item" v-for="i in 10">
				<view class="image">
					<!-- <image src="" mode=""></image> -->
				</view>
				<view class="text">
					<view class="title">
						<text>
							sdssdssdssdssdssdssdssdssdssdsdssdssdssdssdssdssdssdssdssdsdssdssdssdssdssdssdssdssdssd
						</text>
					</view>
					<view class="textitem">
						<u-icon name="account-fill"></u-icon>
						贪玩歌姬小宁子
					</view>
					<view class="textitem">
						<u-icon name="calendar-fill"></u-icon>
						大大说
					</view>
				</view>
			</view>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				number: 230
			};
		}
	}
</script>

<style lang="scss">
	.content {
		.header {
			text-align: center;
			height: 50px;
			line-height: 50px;
		}

		.count {
			text-align: center;
			height: 30px;
			line-height: 30px;
			margin: 10px;
			color: #848A94;
			background-color: #F3F4F7;
			border-radius: 5px;
		}

		.main {
			height: calc(100vh - 100px);

			.item {
				height: 100px;
				background-color: #E1E1E1;
				margin: 10px;

				border-radius: 5px;
				display: flex;
				justify-content: space-between;

				.image {
					height: 100px;
					width: 170px;
					background-color: #007AFF;
					border-radius: 5px;
				}

				.text {
					width: calc(750rpx - 200px);
					height: 100px;
					// background-color: green;
					border-radius: 5px;

					.title {
						margin: 5px 0;
						height: 40px;
						line-height: 20px;
						overflow: hidden;

						word-break: break-all;
						/* break-all(允许在单词内换行。) */
						text-overflow: ellipsis;
						/* 超出部分省略号 */
						display: -webkit-box;
						/** 对象作为伸缩盒子模型显示 **/
						-webkit-box-orient: vertical;
						/** 设置或检索伸缩盒对象的子元素的排列方式 **/
						-webkit-line-clamp: 2;
						/** 显示的行数 **/
					}

					.textitem {
						height: 20px;
						font-size: 10px;
						line-height: 20px;
						display: flex;

						.text {
							overflow: hidden;
							word-break: break-all;
							text-overflow: ellipsis;
							display: -webkit-box;
							-webkit-box-orient: vertical;
							-webkit-line-clamp: 1;
						}
					}


				}
			}
		}
	}
</style>
